//
//  DataCenter.h
//  PlantNanny
//
//  Created by Joueu on 14-12-25.
//
//

#ifndef __PlantNanny__DataCenter__
#define __PlantNanny__DataCenter__

#include "cocos2d.h"

USING_NS_CC;

class DataCenter
{
public:
    static DataCenter *getInstance();
    std::string getCupNameByType(int type);
    std::string getDCupNameByType(int type);
    void setValueVectorForKey(ValueVector &vector, const char *key);
    ValueVector getValueVectorByKey(const char *key);
    ValueVector getValueVectorByKey(const char *key, ValueVector vector);
    int getCupCount();
    
    int getSceneCount();
    std::string getMoreSceneByType(int type);
    std::string getBackgroundSceneByType(int type);
    
    int getCapacityHaveDrink();
    void drink(int cap = 0);
    int getCapacityToDrink();
    
    std::string getUsingCupName();
    int getUsingCupType();
    int getUsingCupCapacity();
    std::string getUsingBackgroundSceneName();
    
    void setUsingCupType(int type);
    void setUsingCupCapacity(int cap);
    void setUsingBackgroundSceneType(int type);
    
    void clear();
private:
    static DataCenter *_dataCenter;
    
    int _toDrink;
    int _haveDrink;
};

#endif /* defined(__PlantNanny__DataCenter__) */
